package main

import (
	"2212b/awesomeProject18/api"
	"2212b/awesomeProject18/config"
	"2212b/awesomeProject18/inits"
	"github.com/gin-gonic/gin"
)

func main() {
	config.InitsConfig()
	inits.InitMysql()
	router := gin.Default()
	//router.GET("/ping", func(c *gin.Context) {
	//	c.JSON(200, gin.H{
	//		"message": "pong",
	//	})
	//})
	api.ToadRouter(router)
	router.Run(":8181") // 监听并在 0.0.0.0:8080 上启动服务
}
